package org.dromara.xhlj.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serial;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import org.dromara.starter.jpacomment.annotation.SailColumn;
import org.dromara.starter.jpacomment.annotation.SailIndex;
import org.dromara.starter.jpacomment.annotation.SailTable;
import org.dromara.starter.jpacomment.enums.IndexType;
/**
 * 活动对象 xhlj_activity
 *
 * @author yf
 * @date 2024-07-28
 */

@Data
@TableName("xhlj_activity")
@Entity
@Table(name = "xhlj_activity")
@SailTable(comment = "活动表", indexs = {
    @SailIndex(name = "idx_activity_status", type = IndexType.BTREE,
       columns = {"activity_status"}
    ),    @SailIndex(name = "idx_activity_title", type = IndexType.BTREE,
       columns = {"activity_title"}
    )}
)
public class XhljActivity implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;
    public static final String TRANS_ID_TO_VO = "xhlj_activity_vo";
    public static final String TRANS_ID_TO_VO_LIST = "xhlj_activity_list";
    /**
     * 活动ID
     */
    @TableId(value = "activity_id", type = IdType.AUTO)
    @Id
    private Integer activityId;
    /**
     * 活动标题
     */
    @Column(name = "activity_title")
    @SailColumn(comment = "活动标题",type = "varchar(50)", defaultValue = "NULL")
    private String activityTitle;
    /**
     * 大会ID
     */
    @SailColumn(comment = "大会ID",type = "int", defaultValue = "NULL")
    @Column(name = "conference_info_id")
    private Integer conferenceInfoId;
    /**
     * 大会日程ID
     */
    @SailColumn(comment = "大会日程ID",type = "int", defaultValue = "NULL")
    @Column(name = "meeting_schedule_id")
    private Integer meetingScheduleId;
    /**
     * 会场ID
     */
    @SailColumn(comment = "会场ID",type = "int", defaultValue = "NULL")
    @Column(name = "venues_id")
    private Integer venuesId;
    /**
     * 创建人sys_user（大会管理员）
     */
    @SailColumn(comment = "创建人sys_user（大会管理员）",type = "int", defaultValue = "NULL")
    @Column(name = "create_by")
    private Integer createBy;
    /**
     * 活动内容
     */
    @Column(name = "activity_content")
    @SailColumn(comment = "活动内容",type = "text", defaultValue = "NULL")
    private String activityContent;
    /**
     * 活动地点
     */
    @Column(name = "activity_location")
    @SailColumn(comment = "活动地点",type = "varchar(100)", defaultValue = "NULL")
    private String activityLocation;
    /**
     * 活动位置地图
     */
    @Column(name = "activity_map")
    @SailColumn(comment = "活动位置地图",type = "varchar(100)", defaultValue = "NULL")
    private String activityMap;
    /**
     * 活动开始时间
     */
    @Column(name = "activity_start_time")
    @SailColumn(comment = "活动开始时间",type = "timestamp", defaultValue = "NULL")
    private Date activityStartTime;
    /**
     * 活动结束时间
     */
    @Column(name = "activity_end_time")
    @SailColumn(comment = "活动结束时间",type = "timestamp", defaultValue = "NULL")
    private Date activityEndTime;
    /**
     * 活动报名人数
     */
    @Column(name = "sign_up_count")
    @SailColumn(comment = "活动报名人数",type = "int", defaultValue = "NULL")
    private Integer signUpCount;
    /**
     * 活动热度
     */
    @Column(name = "activity_popularity")
    @SailColumn(comment = "活动热度",type = "int", defaultValue = "NULL")
    private Integer activityPopularity;
    /**
     * 活动订阅量
     */
    @Column(name = "subscription_count")
    @SailColumn(comment = "活动订阅量",type = "int", defaultValue = "NULL")
    private Integer subscriptionCount;
    /**
     * 活动类型（0=会议（线上直播/线下报名），1=展商展销（仅线下报名），2=安全特训营（仅线下报名），3=精华特刊（仅线下报名），4=作品征集（仅线下报名），5=数字成果展（仅线下报名））
     */
    @Column(name = "activity_type")
    @SailColumn(comment = "活动类型（0=会议（线上直播/线下报名），1=展商展销（仅线下报名），2=安全特训营（仅线下报名），3=精华特刊（仅线下报名），4=作品征集（仅线下报名），5=数字成果展（仅线下报名））",type = "char(3)", defaultValue = "NULL")
    private String activityType;
    /**
     * 活动标签（0=网络安全，1=AI人工智能，2=数字安全，3=数字经济，4=智慧城市，5=特色活动）
     */
    @Column(name = "activity_tags")
    @SailColumn(comment = "活动标签（0=网络安全，1=AI人工智能，2=数字安全，3=数字经济，4=智慧城市，5=特色活动）",type = "varchar(200)", defaultValue = "NULL")
    private String activityTags;
    /**
     * 活动图片
     */
    @Column(name = "activity_image")
    @SailColumn(comment = "活动图片",type = "text", defaultValue = "NULL")
    private String activityImage;
    /**
     * 直播回放
     */
    @Column(name = "activity_live_file")
    @SailColumn(comment = "直播回放",type = "text", defaultValue = "NULL")
    private String activityLiveFile;
    /**
     * 直播链接
     */
    @Column(name = "live_stream_link")
    @SailColumn(comment = "直播链接",type = "text", defaultValue = "NULL")
    private String liveStreamLink;
    /**
     * 活动状态（0=未开始，1=进行中，2=已结束）
     */
    @Column(name = "activity_status")
    @SailColumn(comment = "活动状态（0=未开始，1=进行中，2=已结束）",type = "char(3)", defaultValue = "0")
    private String activityStatus;
    /**
     * 活动报名费金额
     */
    @Column(name = "activity_registration_price")
    @SailColumn(comment = "活动报名费金额",type = "decimal(10,2)", defaultValue = "NULL")
    private BigDecimal activityRegistrationPrice;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @Column(name = "create_time")
    @SailColumn(comment = "创建时间",type = "timestamp", defaultValue = "CURRENT_TIMESTAMP")
    private Date createTime;
    /**
     * 删除标志
     */
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    @Column(name = "del_flag")
    @SailColumn(comment = "删除标志",type = "char(1)", defaultValue = "0")
    private String delFlag;
}
